from mpmath import mp   #从mpmath导入mp
mp.dps = 1000 + 1   #设置精度为1000位
print('print 1000 digits of pi behind decimal point')
print(mp.pi)   #打印pi后1000位
print('print 1000 digits of e behind decimal point')
print(mp.e)   #打印自然常熟后1000位
print('print 1000 digits of sqrt(2) behind decimal point')
print(mp.sqrt(2))   #打印根号2后1000位